package com.dh.util;

public class TimeUtil {

    //获取时间戳
    public static long getCurrentTimeMillis() {
        return System.currentTimeMillis();//13
    }

    // 生成商品ID
    public static String createID() {
        String time = getCurrentTimeMillis() + "";//1678175733135
        return time.substring(8);
//        return Long.parseLong();
    }

}
